<template>
  <div class="app-container">
    <el-container>
      <el-aside width="200px">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          :collapse="isCollapse"
          :background-color="isCollapse ? '#343b43' : '#343b43'"
          :text-color="isCollapse ? '#fff' : '#fff'"
          :active-text-color="isCollapse ? '#ffd04b' : '#ffd04b'"
          :router="true"
        >
          <div style="text-align: center; padding: 16px 0; font-size: 16px; color: #fff; margin-left: -22px;">
            门诊预约系统
          </div>
          <el-menu-item index="/admin/hospital">
            <i class="el-icon-location"></i>
            <span slot="title">医院信息管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/department">
            <i class="el-icon-menu"></i>
            <span slot="title">科室管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/Doctor">
            <i class="el-icon-document"></i>
            <span slot="title">医生管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/user">
            <i class="el-icon-user"></i>
            <span slot="title">患者管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/order">
            <i class="el-icon-s-order"></i>
            <span slot="title">病例管理</span>
          </el-menu-item>
          <el-menu-item index="/admin/medicine">
            <i class="el-icon-s-order"></i>
            <span slot="title">药品管理</span>
          </el-menu-item>
        </el-menu>
      </el-aside>

      <el-container>
        <el-header style="background-color: #343b43; color: #fff; padding: 0;">
          <!-- 可添加其他头部内容，如用户信息等 -->
        </el-header>
        <el-main class="main">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isCollapse: false
    };
  },
};
</script>

<style scoped>
.app-container {
  height: 100vh;
}

.el-container {
  height: 100%;
}

.el-aside {
  overflow: hidden;
}

.el-menu-vertical-demo {
  width: 100%;
  height: 100%;
}

.el-menu-vertical-demo .el-submenu {
  color: #fff;
}

.el-menu-vertical-demo .el-menu-item {
  color: #fff;
}
.main{
  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/4.jpg') center/cover;
  

}
</style>
